<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="jQuery.min.js"></script>
</head>

<body>
    <div></div>
    <span></span>
    <script>
        $(function () {
            function $(ele) {
                return document.querySelector(ele);
            }
            console.log($("div"));
            //如果$符号冲突 我们就使用jQuery
            // $.each();
            jQuery.each();
            //让jQuery 释放对$ 控制权 让用户自己决定
            var xx = jQuery.noConflict();
            console.log(xx("span"));
            xx.each();
        })
    </script>
</body>

</html>